package com.iot.system.domain;

import com.iot.common.annotation.Excel;
import com.iot.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 device
 * 
 * @author ruoyi
 * @date 2024-08-14
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id（主键） */
    private Integer id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备ip */
    @Excel(name = "设备ip")
    private String deviceIp;

    /** 设备端口 */
    @Excel(name = "设备端口")
    private String devicePort;

    /** 最近数据 */
    @Excel(name = "最近数据")
    private String deviceLon;

    /** 最远数据 */
    @Excel(name = "最远数据")
    private String deviceLat;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createName;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateName;

    /** 是否被删除（0：未被删除，1：被删除） */
    @Excel(name = "是否被删除", readConverterExp = "0=：未被删除，1：被删除")
    private Integer isDeleted;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceIp(String deviceIp) 
    {
        this.deviceIp = deviceIp;
    }

    public String getDeviceIp() 
    {
        return deviceIp;
    }
    public void setDevicePort(String devicePort) 
    {
        this.devicePort = devicePort;
    }

    public String getDevicePort() 
    {
        return devicePort;
    }
    public void setDeviceLon(String deviceLon) 
    {
        this.deviceLon = deviceLon;
    }

    public String getDeviceLon() 
    {
        return deviceLon;
    }
    public void setDeviceLat(String deviceLat) 
    {
        this.deviceLat = deviceLat;
    }

    public String getDeviceLat() 
    {
        return deviceLat;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("deviceIp", getDeviceIp())
            .append("devicePort", getDevicePort())
            .append("deviceLon", getDeviceLon())
            .append("deviceLat", getDeviceLat())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
